package com.ld.hpfs.dao;

import java.util.ArrayList;
import java.util.HashMap;

import org.springframework.stereotype.Repository;

@Repository
public interface CompanyMapper {
	public int addCompany(HashMap<String,Object> param);
	 
	public ArrayList<HashMap<String,Object>> getCompanies(HashMap<String,Object> param);
	public ArrayList<HashMap<String,Object>> getCompany(int id);
	public int deleteCompany(int id);

	public int updateCompany(HashMap<String,Object> param);
	public int getListCount(HashMap<String,Object> param);
    public ArrayList<HashMap<String,Object>> getParentCompanyList(HashMap<String,Object> param);
    
    public int checkIsParent(int id);
    public int checkHaveData(int id);
    public int checkCompanyName(HashMap<String,Object> param);
    public int getCompanyNum();
    
    public ArrayList<HashMap<String,Object>> getUserList(HashMap<String,Object> param);
    public void deleteCheckers(HashMap<String, Object> param);
    public void addChecker(HashMap<String, Object> param);
    public ArrayList<HashMap<String, Object>> getCheckers(HashMap<String, Object> param);
    public void addCheckerRole(HashMap<String, Object> param);
    public void deleteCheckerRoles();

    /*
     * 检查是否启用发票归档功能
     */
	public int getArchiveInvoice(HashMap<String, Object> param);
    /*
     * 检查CompanyCode的存在性
     */
	public int isExistCompanyCode(HashMap<String, Object> param);

	public HashMap<String, Object> getCurrentCompanyCode(HashMap<String, Object> param);

}